package smoothcraft.Util.Title;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;

public class Main implements CommandExecutor{
	private static Inventory inv;
	private static API api = new API();
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] arg) {
		if(sender instanceof Player) {
			Player p = (Player)sender;
			inv = api.invInit(sender.getName());
			p.openInventory(inv);
		}
		return false;
	}
}
